-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup SSO for Admin app #3138
base: main
Are you sure you want to change the base?
Setup SSO for Admin app #3138
Conversation
@@ -0,0 +1,33 @@ | |||
class Admins::OmniauthCallbacksController < Devise::OmniauthCallbacksController | |||
skip_before_action :verify_authenticity_token, only: :developer |
Check failure
Code scanning / CodeQL
CSRF protection weakened or disabled High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI about 1 month ago
To fix the CSRF vulnerability, we should re-enable CSRF protection for the developer
action. This can be done by removing the skip_before_action :verify_authenticity_token, only: :developer
line. Additionally, we can add a safeguard to ensure that the developer
action is only accessible in development environments by using a more secure approach, such as an environment-specific route constraint.
@@ -1,3 +1,2 @@ | ||
class Admins::OmniauthCallbacksController < Devise::OmniauthCallbacksController | ||
skip_before_action :verify_authenticity_token, only: :developer | ||
|
📝 A short description of the changes
🔗 Link to the relevant story (or stories)
Deployment implications
✅ Checklist
🖼️ Screenshots (if appropriate - no PII/Prod data):